#!/bin/bash/python
# _*_ coding: utf-8 _*_
# file： parse_vlan
# date-time: 2023/10/28-9:59
# auth:hard work
# description
from utils.parse_pkt_utils.parse_pkt_base import Parse_pcap_base

vlan_lst = []
file1 = r'F:\stc_result\vvv.pcap'
wireshark = r'E:\Program Files\Wireshark'
parse = Parse_pcap_base(file1)
lst = parse.parse_pcap_to_one_list(file1, wireshark)
for pkt in lst:
    vlan = int(pkt.vlan.id)
    vlan_lst.append(vlan)

parse.compare_pkt_field_num(vlan_lst)